<html >
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>{{title}}</title>
		<style>
			*{
				margin:0px;
				padding:0px;
				font-size:12px;
					
			}
            tr{
                height: 25px;
            }
		</style>
	</head>
	<body style="background-color:#ececec;text-align: center;" >
    <div style="text-align: center;width: 350px;margin: auto;">
    <form action="/blog/counter" method="post" >
        <table style="width: 100%;">
            <tr>
                <td colspan="2">
                    {{desc}}
                </td>
            </tr>
            <tr>
                <td>
                    第一个值：
                </td>
                <td>
                    <input type="text" name="first" width="150px" value="{{first}}">
                </td>
            </tr>
            <tr>
                <td>
                    运算法则
                </td>
                <td>
                    <select name="type" width="150px">
                        <option value="+" {% if type=='+'%}selected="selected" {%endif%}>加</option>
                        <option value="-" {% if type=='-'%}selected="selected" {%endif%}>减</option>
                        <option value="*" {% if type=='*'%}selected="selected" {%endif%}>乘</option>
                        <option value="/" {% if type=='/'%}selected="selected" {%endif%}>除</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    第二个值：
                </td>
                <td>
                    <input type="text" name="second" width="150px" value="{{second}}">
                </td>
            </tr>
            {% if result or result==0 %}
            <tr>
                <td>
                    结果：
                </td>
                <td>
                    {{result}}
                </td>
            </tr>
            {%endif%}
            <tr>
                <td colspan="2">
                   <input type="submit" value="计算">
                </td>
            </tr>
        </table>
    </form>
               </div>
	</body>
</html>
